package rsa.lib;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.math.BigInteger;

public class FileLib {
	public static void main(String[] args) throws IOException{
		FileInputStream in = null;
		FileOutputStream out = null;
		byte[] c = new byte[5];
		try{
			in = new FileInputStream("output.dat");
			in.read(c);
			//while((c = in.read()) != -1)
			//	System.out.print(c);
			//out = new FileOutputStream("output.dat");
			//for(int ch = 0; ch < 1000; ch++)
			//	out.write(ch);
		}finally{
			if(in != null)
				in.close();
			if(out != null)
				out.close();
		}
		
		BigInteger b = new BigInteger(c);
		System.out.println(b);
	}
}